<?php
namespace Home\Org\Util;
class QQOpenConfig {

    const APPID = '201129618';
    const APPSECRET = 'lZdvpTZ7bu2cdDLx';
    //账户中心开通第三方App回调url
    const COMPANY_CALLBACK_URL = 'http://oa.g-town.com.cn:8008/ItDept/getQQToken';
    //员工登录App回调url
    const USER_CALLBACK_URL = '...';

    const API_URL_HEAD = 'https://openapi.b.qq.com/api/';
    const COMPANY_ID = 'e75859f88b3d0083d4524057ec99975a';
    const CLIENT_IP = '101.81.11.142';
    const OAUTH_VERSION = 2;

    //默认是较安全的情形，无法通过php文件查看模拟存储的数据
    const SAFE_MODE = true;

    //基于sae storage的特殊性，修改文件读写的api
    const SAE_MODE = false;
    const SAE_DOMAIN = 'test';

    //API
    const OAUTH2_TOKEN = 'https://openapi.b.qq.com/oauth2/companyToken';

    //File
    const FILE_NAME = "qqtoken.dat";

}

